/**
 * Created by Freeman on 2016/7/25.
 */

import * as types from '../constants/ActionTypes'

export function authLoad() {
    return {
        type:types.AUTH_LOAD
    }
}

export function search(search) {
    return {
        type:types.SEARCH,
        search:search
    }
}

export function selectUser(sessionIndex) {
    return {
        type:types.USER_SELECT,
        sessionIndex:sessionIndex
    }
}

export function sendText(text) {
    return {
        type:types.SEND_TEXT,
        text:text
    }
}